package pers.liyan.shi.springboot;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * RabbitMQ自动配置原理
 * RabbitAutoConfiguration
 * 1. CachingConnectionFactory 连接工厂
 * 2. RabbitProperties配置类
 * 3. RabbitTemplate 给RabbitMQ发送和接受消息用的
 * 4. AmqpAdmin RabbitMQ系统管理组件
 *      可以用来管理exchange, binding, queue
 * @author shily
 */
@EnableRabbit//开启RabbitMQ注解
@SpringBootApplication
public class SpringbootAmqpApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootAmqpApplication.class, args);
    }

}
